home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000263_a_pyles@yahoo.com_Thu Jul 12 16:12:26 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  64 lines

  1. Article: 12594 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!nycmny1-snh1.gtei.net!paloalto-snf1.gtei.net!news.gtei.net!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: a_pyles@yahoo.com (Andy Pyles)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: ssh script example
  6. Date: 12 Jul 2001 12:49:29 -0700
  7. Organization: http://groups.google.com/
  8. Lines: 46
  9. Message-ID: <a695e0e6.0107121149.6d5ab7bb@posting.google.com>
  10. NNTP-Posting-Host: 63.150.57.150
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Trace: posting.google.com 994967370 21391 127.0.0.1 (12 Jul 2001 19:49:30 GMT)
  14. X-Complaints-To: groups-support@google.com
  15. NNTP-Posting-Date: 12 Jul 2001 19:49:30 GMT
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12594
  17.  
  18. Hi,
  19.  
  20. I'm using c-kermit 7.0 on a redhat 6.2 linux machine.
  21. and trying to script a simple ssh login script.
  22.  
  23. here's what I have so far:
  24.  
  25. ~~~~~~~~~~~~~~~~~~~~~~~
  26.  
  27. #!/usr/bin/kermit  +
  28. ; expect script that will automatically upgrade telverse ui files on
  29. ; remote system. using the ssh protocol.
  30. ; usage uiupgrade username hostname password
  31.  
  32. ;set prefixing all
  33. set transaction-log verbose
  34. log session session.log
  35. set host /pty ssh -l \%1 \%2
  36. if fail out failed!!
  37.  
  38. input 10 password:
  39. if fail out no password prompt!
  40. out \%3\13
  41. input 10 ]$
  42. out touch /tmp/blaHH\13
  43. input 10 ]$
  44. out exit\13
  45. lineout ~.
  46. logout
  47. exit
  48.  
  49. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  50.  
  51. Ok, so the problem I have is when I run this script I just get the following:
  52.  
  53. [andy@dev1 images]$ ./ssh_kermit.ker andy dev1 password
  54. no password prompt!password
  55. touch /tmp/blaHH
  56. [andy@dev1 images]$
  57.  
  58. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  59.  
  60. any clue on what I'm doing wrong here?
  61.  
  62. Thanks!
  63. -Andy
  64.